import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import vitePluginImp from 'vite-plugin-imp'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    react(),
    // 按需加载
    vitePluginImp({
      libList: [{
        libName: 'antd',
        style: name => `antd/lib/${name}/style/index.css`
      }]
    })]
})
